<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>祥豪国际</title>
<link rel="stylesheet" type="text/css" href="../resources/css/yui3.css">
<link rel="stylesheet" type="text/css" href="../resources/css/common.css">
<script type="text/javascript">
if(top != self)
	top.location.href = self.location.href;
</script>
</head>

<body id="loginBody">
	<div id="loginWrapper">
		<div class="loginForm">
			<form action="" onSubmit="return chkform(this, '')" method="post">
			<table width="100%" height="100%" cellpadding="4" cellspacing="0" border="0">
				<tr>
					<td align="right">帐号:</td>
					<td>
						<input name="account" id="account" size="14"/>
					</td>
				</tr>
				<tr>
					<td align="right">密码:</td>
					<td>
						<input name="password" id="password" type="password" size="14"/>
					</td>
				</tr>
				<tr>
					<td align="right">验证码:</td>
					<td>
						<input name="verifyCode" id="verifyCode" size="4" maxLength="5"/>
						<img src="../resources/images/authimg.png"/>
					</td>
				</tr>
				<tr>
					<td align="center" colspan="2">
						<input name="login" class="rb1" type="submit" value="登入"/>
					</td>
				</tr>
			</table>
		</form>
		</div>
	</div>
</body>
<script type="text/javascript" src="../resources/javascript/jquery-1.9.1.min.js"></script>
<script type="text/javascript">
$(function(){
	var height = $(document).height();
	$("#loginBody").css({height:height+'px'});
});
errmsg="";
if (errmsg!="") {
	alert(errmsg);
	window.opener=null;
	window.close()
}

document.all.account.focus();

function chkform(f, newmsg)
{
    if (f.account.value=="") {
        alert("请输入帐号！");
        f.account.focus();
        return false;
    }
    if (f.password.value=="") {
        alert("请输入密码！");
        f.password.focus();
        return false;
    }
    if (f.verifyCode.value=="") {
        alert("请输入验证码！");
        f.verifyCode.focus();
        return false;
    }  
  	if (newmsg!="") {
  		alert(newmsg);
  	}
}
</script>
</html>
